package lab02.test11;

public class Test11 {
    public static void main(String[] args) {
        Printx rectangle=new Rectangle();
        rectangle.setA(5);
        rectangle.setB(10);
        System.out.println("矩形:");
        rectangle.printMyWay();
        rectangle.perimeter(rectangle.getA(),rectangle.getB());
        rectangle.area(rectangle.getA(),rectangle.getB());
        Printx square=new Square();
        square.setB(9);
        square.setB(9);
        square.printMyWay();
        square.diagonal(square.getA(),square.getB());
    }
}
